package org.easy.db.generator;

import lombok.extern.slf4j.Slf4j;

/**
 * @Description:
 * @Author: wxl
 * @CreateTime: 2023/1/18 16:33
 */
@Slf4j
public class Generator implements IGenerator{

    public Generator () {}

    /**
     * 自动生成代码
     *
     * @param builder 配置信息
     */
    @Override
    public void generator(GlobalConfigBuilder builder) {
        log.info("需要生成代码的实体类:{}",builder);
        VelocityTemplateEngine templateEngine = new VelocityTemplateEngine(builder);
        templateEngine.init().generator();
    }
}
